# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=maui
pkgname=vvave
pkgver=3.0.2
pkgrel=0
pkgdesc="VVAVE Music Player"
# armhf blocked by qt5-qtdeclarative
# s390x, ppc64le and riscv64 blocked by qt5-qtwebview
arch="all !armhf !s390x !ppc64le !riscv64"
url="https://invent.kde.org/maui/vvave"
license="GPL-3.0-or-later"
depends="
	kde-icons
	qt5-qtbase-sqlite
	"
makedepends="
	attica5-dev
	extra-cmake-modules
	kconfig5-dev
	ki18n5-dev
	kio5-dev
	knotifications5-dev
	mauikit-dev
	mauikit-accounts-dev
	mauikit-filebrowsing-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtmultimedia-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	qt5-qtwebsockets-dev
	qt5-qtwebview-dev
	samurai
	syntax-highlighting5-dev
	taglib-dev
	"
_repo_url="https://invent.kde.org/maui/vvave.git"
source="https://download.kde.org/stable/maui/vvave/$pkgver/vvave-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
a3b1b4fe07f858e621ba221b234e32d4a8ccb46bce8d726a98d198f310647f540b4febfb13e1c3be1d08e4f928dd748f912480d689d71226cb6f2ea26ba0877f  vvave-3.0.2.tar.xz
"
